package com.shujia.service.impl;

import com.shujia.dao.EmpDao;
import com.shujia.entity.Emp;
import com.shujia.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpDao empDao;

    @Override
    public List<Emp> findAll() {
        return empDao.findAll();
    }

    @Override
    public int save(Emp emp) {
        return empDao.save(emp);
    }

    @Override
    public Integer delete(String empno) {
        return empDao.delete(empno);
    }

    @Override
    public Emp get(String empno) {
        return empDao.get(empno);
    }

    @Override
    public int update(Emp emp) {
        return empDao.update(emp);
    }
}
